Software Development
Advanced Topics in C
Advanced Topics in C: Getting Started with File Handling
Advanced Topics in C: Managing Code Compilations Using Preprocessor Directives
Advanced Topics in C: Using Strings, Header Files, & Type Conversions
Final Exam: A Complete Guide to Programming in C

Advanced Topics in C: Getting Started with File Handling

Course Number:
it_cpatpcdj_01_enus
Lesson Objectives

Advanced Topics in C: Getting Started with File Handling

  • discover the key concepts covered in this course
  • outline the basic concepts of file handling in C and when they are most appropriate to use
  • identify fopen() file modes
  • recognize common file functions
  • create file handlers
  • compare the read, write, and append modes
  • read in characters from a file
  • read in strings to an array
  • read in structured data
  • write data out to a file
  • read in data using r+, w+, and a+ modes
  • write out structured data
  • write out binary data using fwrite()
  • read in binary data
  • write out and read in structs from binary files
  • position a file pointer using the ftell() and fseek() functions
  • move a file pointer using the fseek() and rewind() functions
  • summarize the key concepts covered in this course

Overview/Description
File handling is an integral part of many medium-to-large-scale programs in C. Files are the most convenient way of managing data for the wide range of programs of this size. You will start this course by considering the advantages of using files in C and the most important functions for file handling, which are fopen() and fclose(). Explore the modes that fopen() can be used with and read and write data to text files. Begin by reading in individual characters with the fgetc() function, whole strings from a file using fgets(), and structured data with the fscanf() function. Discover how to use the r+, a+, and w+ modes, before turning to writing structured data using the fprintf() function. Next, learn how to read and write binary data by leveraging the fread and fwrite functions and the wb and rb modes. Finally, you will perform file seek operations using the functions fseek, ftell, and rewind to control the position your program is operating on in the file stream.

Target

Prerequisites: none

Advanced Topics in C: Managing Code Compilations Using Preprocessor Directives

Course Number:
it_cpatpcdj_02_enus
Lesson Objectives

Advanced Topics in C: Managing Code Compilations Using Preprocessor Directives

  • discover the key concepts covered in this course
  • outline the C compilation process
  • recognize preprocessor directives
  • identify the output of each step in the compilation process
  • outline the process of creating macros and reviewing the preprocess output of code containing macros
  • create macros which perform operations
  • use conditional pre-processor directives
  • explore the #ifdef, #ifndef, and #undef preprocessor directives
  • utilize pragmas to manage warnings
  • summarize the key concepts covered in this course

Overview/Description
One of the key attractions of C is the low-level control it gives us over its compilation process. Indeed, the C language allows us to control the compilation of a program to a level unmatched by other languages such as Java. You will start this course by learning the compilation process of C which includes four main steps: preprocessing, compiling, assembling, and linking. Once you grasp the output of each step in the compilation process, move on to investigating preprocessor directives. Next, use conditional preprocessor directives including #if, #elseif and #endif. Finally, discover how to issue instructions to the compiler using pragmas, upgrade a warning to a regular error, and convert a warning to an extremely severe fatal error. After completing this course, you'll be able to list the steps for compiling a C program including creating macros with preprocessor directives, control conditional compilation, and use pragmas to alter compiler settings.

Target

Prerequisites: none

Advanced Topics in C: Using Strings, Header Files, & Type Conversions

Course Number:
it_cpatpcdj_03_enus
Lesson Objectives

Advanced Topics in C: Using Strings, Header Files, & Type Conversions

  • discover the key concepts covered in this course
  • outline the process of creating strings in character arrays
  • create strings as pointers
  • create shallow and deep copies of strings
  • identify issues with storing strings as pointers
  • add strings to character pointers
  • compare strings using strcmp() and strcasecmp()
  • outline how to create header files and use functions from them
  • reference user-defined header files
  • add guardrails against multiple inclusions for header files
  • identify key components of type conversion in C
  • identify implicit type conversions
  • identify the results of performing explicit type conversions
  • use command-line input arguments
  • summarize the key concepts covered in this course

Overview/Description
Strings are the most fundamental way of representing text in any programming language. In C, they take the form of character arrays, delimited with a special character. Because of the equivalence between arrays and pointers in C, strings can also be represented using character pointers. Start this course by creating strings as arrays of characters, observing that the end of a string is delimited using the \0 character. Discover how strings are stored in character pointers and iterate over strings with pointer arithmetic and use the strlen(), strcpy(), strcmp() and strcasecmp() functions. Next, learn how to create header files and use the #include preprocessor directive to pull in both system and user-created header files. Explore type conversions and learn about implicit conversions. Finally, explore command line arguments including the use of argc and argv, and how these can be used in your C programs. Upon completion, you'll be able to to work with C strings using character arrays, library functions, and header files, perform type conversions, and use command line arguments in C programs.

Target

Prerequisites: none

Final Exam: A Complete Guide to Programming in C

Course Number:
it_fepccp_01_enus
Lesson Objectives

Final Exam: A Complete Guide to Programming in C

  • demonstrate writing, compiling, and running C code on mac and windows
  • recall the compilation process of C
  • run C code and view its results
  • identify compiler and linker errors in C
  • demonstrate variable conventions and syntax
  • differentiate between signed and unsigned variables
  • introduce variables in C
  • demonstrate the use of ==, !=, <, > relational operators
  • perform math operations on variables with assignment operators
  • identify array datatypes in C
  • print out floating-point types
  • demonstrate the use of the scanf function
  • demonstrate the use of if-else blocks
  • demonstrate the use of basic if statements
  • chain relational operators with logical operators
  • demonstrate how to run code with switch statements
  • demonstrate the use of switch statements in various scenarios
  • demonstrate the use of nested if-else blocks
  • Illustrate the creation and use of variables of the Boolean type in C
  • create for loops in C
  • demonstrate the effects of changes to the loop variable and update expression in for loops
  • demonstrate how to create while loops
  • demonstrate the use of do-while loops
  • demonstrate how to create nested for loops
  • return values and accept input arguments in functions
  • demonstrate how to use different utility functions
  • create user-defined functions
  • redefine variables in different scopes
  • use the static and extern keywords with functions
  • differentiate between pass-by-value and pass-by-reference
  • work with unions
  • create enums
  • modify variables using pointers
  • create pointers from other pointers
  • access memory locations and the values stored in them
  • work with the NULL type
  • create an array and access it through its pointer
  • pass pointers into functions
  • distinguish the finer points of arrays and pointers
  • view the address of elements in an array using pointer arithmetic
  • contrast stack and heap memory
  • create pointers on struct objects
  • distinguish between dangling memory and memory leaks
  • use the free() method to free stack memory that is not allocated
  • write data out to a file
  • read in strings to an array
  • position a file pointer using the ftell() and fseek() functions
  • move a file pointer using the fseek() and rewind() functions
  • position a file pointer using the fseek() and ftell() functions
  • read in data using r+, w+, and a+ modes
  • write out binary data using fwrite()
  • create macros which perform operations
  • explore the #ifdef, #ifndef, and #undef preprocessor directives
  • use pragmas to manage warnings
  • utilize pragmas to manage warnings
  • create shallow and deep copies of strings
  • compare strings using strcmp() and strcasecmp()
  • identify the results of performing explicit type conversions
  • add guardrails against multiple inclusions for header files
  • identify implicit type conversions

Overview/Description

Final Exam: C Programming Proficiency will test your knowledge and application of the topics presented throughout the Skillsoft Aspire C Programming Proficiency Journey.



Target

Prerequisites: none

Close Chat Live